function importContract(callbackFun,param){
	var url=contextRootPath+'/tCMmQuota/prepareExecute/toWindowContractPage';
	if(param){
		var i;
		url+="?";
		for(i in param){
			url+=(i+"="+param[i]+"&");
		}
		url=url.slice(0,-1);
	}
	return function(){
		var dialogStruct={
				'display':url,
				'width':1000,
				'height':800,
				'title':'选择合约',
				'isIframe':'false',
				'buttons':[
			           {'text':'关闭','isClose':true}
		           ]
		};
		var dialogAdd =jyDialog(dialogStruct);
		dialogAdd.open();
		window.selectContract=function(contractCode){
			callbackFun(contractCode);
			dialogAdd.close();
		};
	}
}

function rebuildConstraintsEl(params,containerId,url){
	var container=$("#"+containerId);
	container.empty();
	container.load(url,params);
}